/**
 * grayrabbit Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package com.grayrabbit.slacker.constant;

import com.grayrabbit.slacker.config.provider.PropertiesProvider;

/**
 * 数据库配置信息常量定义
 * 
 * @author liyd
 * @version $Id: ConfigConstant.java, v 0.1 2012-5-8 下午2:42:15 liyd Exp $
 */
public final class ConfigConstant {

    /** 项目根目录 */
    public final static String GENERATE_PROJECT_HOME = PropertiesProvider
                                                         .getProperty("generate.project.home");

    /** 数据库类型 */
    public final static String DATABASE_TYPE         = PropertiesProvider
                                                         .getProperty("jdbc.database.type");
    /** 数据库驱动类 */
    public final static String DRIVER_CLASS_NAME     = PropertiesProvider
                                                         .getProperty("jdbc.driverClassName");
    /** 数据库连接字符串 */
    public final static String JDBC_URL              = PropertiesProvider.getProperty("jdbc.url");
    /** 数据库用户名 */
    public final static String USERNAME              = PropertiesProvider
                                                         .getProperty("jdbc.username");
    /** 数据库密码 */
    public final static String PASSWORD              = PropertiesProvider
                                                         .getProperty("jdbc.password");

    /** 文件编码 */
    public final static String ENCODING              = PropertiesProvider.getProperty("encoding");

}
